package com.wzgl.core.baseModel;

import com.jfinal.plugin.activerecord.IBean;
import com.wzgl.core.base.JModel;

@SuppressWarnings("serial")
public class BaseDicinfo<M extends BaseDicinfo<M>> extends JModel<M> implements IBean {
	@Override
	public boolean equals(Object o) {
		if(o == null){ return false; }
		if(!(o instanceof BaseDicinfo<?>)){return false;}

		BaseDicinfo<?> m = (BaseDicinfo<?>) o;
		if(m.getFid() == null){return false;}

		return m.getFid().compareTo(this.getFid()) == 0;
	}
	@Override
	public boolean save() {
		boolean saved = super.save();
		return saved;
	}

	@Override
	public boolean delete() {
		boolean deleted = super.delete();
		return deleted;
	}

	@Override
	public boolean deleteById(Object idValue) {
		boolean deleted = super.deleteById(idValue);
		return deleted;
	}

	@Override
	public boolean update() {
		boolean update = super.update();
		return update;
	}
	
	public void setFid(java.lang.String id) {
		set("fid", id);
	}
	public java.lang.String getFid() {
		Object id = get("fid");
		if (id == null)
			return null;
		return id.toString();
	}
	
	public void setFcode(java.lang.String fode) {
		set("fode", fode);
	}
	public java.lang.String getFcode() {
		return get("fode");
	}
	
	public void setFvalue(java.lang.String fvalue) {
		set("fvalue", fvalue);
	}
	public java.lang.String getFvalue() {
		return get("fvalue");
	}
	
	public void setFremark(java.lang.String fremark) {
		set("fremark", fremark);
	}
	public java.lang.String getFremark() {
		return get("fremark");
	}
	
	public void setFsortcode(java.lang.String fsortcode) {
		set("fsortcode", fsortcode);
	}
	public java.lang.String getFsortcode() {
		return get("fsortcode");
	}
	public void setFsortname(String fsortname){
		set("fsortname",fsortname);
	}
	public String getFsortname(){
		return get("fsortname");
	}
	public void setFstats(Integer fstats){
		set("fstats",fstats);
	}
	public Integer getFstats(){
		return get("fstats");
	}
}
